//
// Created by Administrator on 2019/9/28.
//

#ifndef HIHTTPS_C_LOG_H
#define HIHTTPS_C_LOG_H


#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <malloc.h>
#include <time.h>

#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <arpa/inet.h>
#include <math.h>


#define ATKLOG_FILE_RCNUM 1000000
#define ATKLOG_FILE_RWNUM 10000
#define TIME_BYTE         32
#define SIP_BYTE          32
#define DIP_BYTE          32
#define SEVERITY_BYTE     8

#define PER_PAGE          10


#define FILE_PATH "/pro/hihttps-c/hissl.log"


typedef struct atklog_s  {

    unsigned int time;
    unsigned int sip;
    unsigned int dip;
    unsigned int ruleid;

    unsigned int uid;
    unsigned int detail;
    unsigned short len;
    unsigned short sport;
    unsigned short type;
    unsigned short severity;
} atklog_t;

#endif //HIHTTPS_C_LOG_H
